package com.nuaa.ange.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description
 * @author 玦离
 * @date 2022/12/30 20:53
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_search_history")
public class SearchHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "search_id", type = IdType.AUTO)
    private Integer searchId;

    /**
     * 搜索内容 20字以内
     */
    private String searchContent;

    /**
     * 搜索用户id 关联t_user表
     */
    private Integer userId;

    /**
     * 发表时间
     */
    private LocalDateTime createTime;


}
